import { useBaseLayout } from '@oaexpert/layouts'
import NProgress from 'nprogress'

export function useApp() {
  const { LayoutPageReload } = useBaseLayout()
  const reloadPage = async () => {
    NProgress.start()
    await LayoutPageReload()
    NProgress.done()
  }
  return { reloadPage }
}
